<script type="text/javascript">
	$(function(){
		//保存修改
		$("#personalInfo_form").submit(function(){
			jQuery.post("/Wyn/user_detail/personal_info_save",$(this).serialize(),
			function(data){
				$("#personalInfo").replaceWith(data);
			});
			return false;
		});
		//取消
		$("#personalInfoCancel").click(function(){
			jQuery.get("/Wyn/user_detail/personal_info_cancel",
			function(data){
				$("#personalInfo").replaceWith(data);
			});
		});
		$("#personalInfo_display").toggle(
			function(){
				$("#personalInfo_form").hide();
			},
			function(){
				$("#personalInfo_form").show();
			});
	});
</script>
<div class="info-section clearfix" id="personalInfo">
	<div class="details panel opened" id="personalInfo_detail">
		<h3 id="personalInfo_display" class="legend">个人信息</h3>
		<div id="personalInfo_message" class="errors_div ajax_msgerror"
			style="display: none;"></div>
		<div id="personalInfo_loading" class="profileLoading"
			style="display: none;">
			<span>个人信息读取中...</span>
		</div>
		<form class="panel" action="/PersonalInfo.do" method="post"
			name="personalInfoForm" id="personalInfo_form">
			<p>
				<label for="interest"> <span>兴趣爱好:</span>
				</label>
				<textarea tabindex="1" rows="5" cols="80" class="textarea"
					id="interest" name="ud.hobby">${ud.hobby}</textarea>
			</p>
			<p>
				<label for="music"> <span>喜欢的音乐:</span>
				</label>
				<textarea tabindex="3" rows="5" cols="80" class="textarea"
					id="music" name="ud.music">${ud.music}</textarea>
			</p>
			<p>
				<label for="movie"> <span>喜欢的电影:</span>
				</label>
				<textarea tabindex="4" rows="5" cols="80" class="textarea"
					id="movie" name="ud.movie">${ud.movie}</textarea>
			</p>
			<p>
				<label for="game"> <span>喜欢的游戏:</span>
				</label>
				<textarea tabindex="5" rows="5" cols="80" class="textarea" id="game"
					name="ud.game">${ud.game}</textarea>
			</p>
			<p>
				<label for="comic"> <span>喜欢的动漫:</span>
				</label>
				<textarea tabindex="6" rows="5" cols="80" class="textarea"
					id="comic" name="ud.comic">${ud.comic}</textarea>
			</p>
			<p>
				<label for="sport"> <span>喜欢的运动:</span>
				</label>
				<textarea tabindex="7" rows="5" cols="80" class="textarea"
					id="sport" name="ud.sport">${ud.sport}</textarea>
			</p>
			<p>
				<label for="book"> <span>喜欢的书籍:</span>
				</label>
				<textarea tabindex="8" rows="5" cols="80" class="textarea" id="book"
					name="ud.book">${ud.book}</textarea>
			</p>

			<p>
				<label class="empty" for=""> <span>确认:</span>
				</label> <input type="hidden" value="1" name="errorReturn"><input
					type="submit" id="personalInfoSubmit" class="input-submit"
					value="保存修改" tabindex="9" name="submit"><input
					type="button" id="personalInfoCancel" class="input-submit gray"
					value="取消" tabindex="10">
			</p>
		</form>
	</div>
</div>